package com.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TargetaimExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public TargetaimExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTaidIsNull() {
            addCriterion("TAID is null");
            return (Criteria) this;
        }

        public Criteria andTaidIsNotNull() {
            addCriterion("TAID is not null");
            return (Criteria) this;
        }

        public Criteria andTaidEqualTo(Integer value) {
            addCriterion("TAID =", value, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidNotEqualTo(Integer value) {
            addCriterion("TAID <>", value, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidGreaterThan(Integer value) {
            addCriterion("TAID >", value, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidGreaterThanOrEqualTo(Integer value) {
            addCriterion("TAID >=", value, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidLessThan(Integer value) {
            addCriterion("TAID <", value, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidLessThanOrEqualTo(Integer value) {
            addCriterion("TAID <=", value, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidIn(List<Integer> values) {
            addCriterion("TAID in", values, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidNotIn(List<Integer> values) {
            addCriterion("TAID not in", values, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidBetween(Integer value1, Integer value2) {
            addCriterion("TAID between", value1, value2, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidNotBetween(Integer value1, Integer value2) {
            addCriterion("TAID not between", value1, value2, "taid");
            return (Criteria) this;
        }

        public Criteria andCidIsNull() {
            addCriterion("CID is null");
            return (Criteria) this;
        }

        public Criteria andCidIsNotNull() {
            addCriterion("CID is not null");
            return (Criteria) this;
        }

        public Criteria andCidEqualTo(String value) {
            addCriterion("CID =", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotEqualTo(String value) {
            addCriterion("CID <>", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThan(String value) {
            addCriterion("CID >", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThanOrEqualTo(String value) {
            addCriterion("CID >=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThan(String value) {
            addCriterion("CID <", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThanOrEqualTo(String value) {
            addCriterion("CID <=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLike(String value) {
            addCriterion("CID like", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotLike(String value) {
            addCriterion("CID not like", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidIn(List<String> values) {
            addCriterion("CID in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotIn(List<String> values) {
            addCriterion("CID not in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidBetween(String value1, String value2) {
            addCriterion("CID between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotBetween(String value1, String value2) {
            addCriterion("CID not between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andEnddateIsNull() {
            addCriterion("ENDDATE is null");
            return (Criteria) this;
        }

        public Criteria andEnddateIsNotNull() {
            addCriterion("ENDDATE is not null");
            return (Criteria) this;
        }

        public Criteria andEnddateEqualTo(Date value) {
            addCriterion("ENDDATE =", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotEqualTo(Date value) {
            addCriterion("ENDDATE <>", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateGreaterThan(Date value) {
            addCriterion("ENDDATE >", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateGreaterThanOrEqualTo(Date value) {
            addCriterion("ENDDATE >=", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateLessThan(Date value) {
            addCriterion("ENDDATE <", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateLessThanOrEqualTo(Date value) {
            addCriterion("ENDDATE <=", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateIn(List<Date> values) {
            addCriterion("ENDDATE in", values, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotIn(List<Date> values) {
            addCriterion("ENDDATE not in", values, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateBetween(Date value1, Date value2) {
            addCriterion("ENDDATE between", value1, value2, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotBetween(Date value1, Date value2) {
            addCriterion("ENDDATE not between", value1, value2, "enddate");
            return (Criteria) this;
        }

        public Criteria andWeighttargetIsNull() {
            addCriterion("WEIGHTTARGET is null");
            return (Criteria) this;
        }

        public Criteria andWeighttargetIsNotNull() {
            addCriterion("WEIGHTTARGET is not null");
            return (Criteria) this;
        }

        public Criteria andWeighttargetEqualTo(Float value) {
            addCriterion("WEIGHTTARGET =", value, "weighttarget");
            return (Criteria) this;
        }

        public Criteria andWeighttargetNotEqualTo(Float value) {
            addCriterion("WEIGHTTARGET <>", value, "weighttarget");
            return (Criteria) this;
        }

        public Criteria andWeighttargetGreaterThan(Float value) {
            addCriterion("WEIGHTTARGET >", value, "weighttarget");
            return (Criteria) this;
        }

        public Criteria andWeighttargetGreaterThanOrEqualTo(Float value) {
            addCriterion("WEIGHTTARGET >=", value, "weighttarget");
            return (Criteria) this;
        }

        public Criteria andWeighttargetLessThan(Float value) {
            addCriterion("WEIGHTTARGET <", value, "weighttarget");
            return (Criteria) this;
        }

        public Criteria andWeighttargetLessThanOrEqualTo(Float value) {
            addCriterion("WEIGHTTARGET <=", value, "weighttarget");
            return (Criteria) this;
        }

        public Criteria andWeighttargetIn(List<Float> values) {
            addCriterion("WEIGHTTARGET in", values, "weighttarget");
            return (Criteria) this;
        }

        public Criteria andWeighttargetNotIn(List<Float> values) {
            addCriterion("WEIGHTTARGET not in", values, "weighttarget");
            return (Criteria) this;
        }

        public Criteria andWeighttargetBetween(Float value1, Float value2) {
            addCriterion("WEIGHTTARGET between", value1, value2, "weighttarget");
            return (Criteria) this;
        }

        public Criteria andWeighttargetNotBetween(Float value1, Float value2) {
            addCriterion("WEIGHTTARGET not between", value1, value2, "weighttarget");
            return (Criteria) this;
        }

        public Criteria andTastateIsNull() {
            addCriterion("TASTATE is null");
            return (Criteria) this;
        }

        public Criteria andTastateIsNotNull() {
            addCriterion("TASTATE is not null");
            return (Criteria) this;
        }

        public Criteria andTastateEqualTo(Integer value) {
            addCriterion("TASTATE =", value, "tastate");
            return (Criteria) this;
        }

        public Criteria andTastateNotEqualTo(Integer value) {
            addCriterion("TASTATE <>", value, "tastate");
            return (Criteria) this;
        }

        public Criteria andTastateGreaterThan(Integer value) {
            addCriterion("TASTATE >", value, "tastate");
            return (Criteria) this;
        }

        public Criteria andTastateGreaterThanOrEqualTo(Integer value) {
            addCriterion("TASTATE >=", value, "tastate");
            return (Criteria) this;
        }

        public Criteria andTastateLessThan(Integer value) {
            addCriterion("TASTATE <", value, "tastate");
            return (Criteria) this;
        }

        public Criteria andTastateLessThanOrEqualTo(Integer value) {
            addCriterion("TASTATE <=", value, "tastate");
            return (Criteria) this;
        }

        public Criteria andTastateIn(List<Integer> values) {
            addCriterion("TASTATE in", values, "tastate");
            return (Criteria) this;
        }

        public Criteria andTastateNotIn(List<Integer> values) {
            addCriterion("TASTATE not in", values, "tastate");
            return (Criteria) this;
        }

        public Criteria andTastateBetween(Integer value1, Integer value2) {
            addCriterion("TASTATE between", value1, value2, "tastate");
            return (Criteria) this;
        }

        public Criteria andTastateNotBetween(Integer value1, Integer value2) {
            addCriterion("TASTATE not between", value1, value2, "tastate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}